package com.djl.myrole;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: cloud
 * @description:
 * @author: Mr.dai
 * @create: 2021-09-22 18:00
 **/
@Configuration
public class MySelfRule {
     @Bean
    public IRule myRole(){
         //定义为随机
         return new RandomRule();
     }
}
